package bookshop.service;

import bookshop.domain.Book;
import bookshop.domain.CartItem;
import bookshop.domain.ShoppingCart;

public interface ShoppingCartService {
	
	
	//增加图书到购物车
	void addBookToCart(Book book, ShoppingCart cart);

	
	//删除购物车里的图书
	void delBookInCart(String bookCode,ShoppingCart cart);
	
	
	//根据图书Id取得购物车里的item
	CartItem getItemByBookCode(String bookCode, ShoppingCart cart);
	
	//更新购物车里的item
	void updateBookInCart(String bookCode, CartItem cartItem,ShoppingCart cart);
	
	
}
